class ReimbursementQuery:
    def __init__(self, reimbursement_id=None, food_cost=None, transport_cost=None, hotel_cost=None, apply_date=None,
                 detail=None, travel_id=None):
        self.reimbursement_id = reimbursement_id
        self.food_cost = food_cost
        self.transport_cost = transport_cost
        self.hotel_cost = hotel_cost
        self.apply_date = apply_date
        self.detail = detail
        self.travel_id = travel_id

    def to_dict(self):
        return {
            'reimbursement_id': self.reimbursement_id,
            'food_cost': self.food_cost,
            'transport_cost': self.transport_cost,
            'hotel_cost': self.hotel_cost,
            'apply_date': self.apply_date.isoformat() if self.apply_date else None,
            'detail': self.detail,
            'travel_id': self.travel_id
        }
